<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="com.blockchain.front.servlets.financial.Tbzc"%>
<%@page import="com.blockchain.front.service.financial.QbManage"%>
<%@page import="com.blockchain.front.servlets.SendVice"%>
<%@page import="com.blockchain.front.servlets.Send"%>
<%@page import="com.blockchain.front.servlets.security.Qbbz"%>
<%@page import="com.blockchain.front.service.financial.entity.XlbEntity"%>
<%@page import="com.blockchain.util.http.URLParameter"%>
<%@page import="com.blockchain.front.servlets.financial.AbstractFinancialServlet"%>
<%@page import="com.blockchain.front.service.AbstractFrontService"%>
<%@page import="com.blockchain.front.servlets.AbstractFrontServlet"%>
<%@page import="com.blockchain.front.service.financial.entity.JlEntity"%>
<%@page import="com.blockchain.common.enums.JyztStatus"%>
<%@page import="com.blockchain.front.service.security.entity.QbdzEntity"%>
<%@page import="com.blockchain.front.service.security.SecurityManage"%>
<%@page import="com.blockchain.front.service.financial.FinancialManage"%>
<html>
<head>
<%
	String str = languageDefine.getValue(request, "turnIn_turnIn");
	String _TITLE_ = str + "- " + configureProvider.getProperty(SystemVariable.SITE_NAME);
		CURRENT_SUB_CATEGORY="ZRXLB";
		PC_TITLE_NAME="ZRXLB";
		SecurityManage securityManage = serviceSession.getService(SecurityManage.class);
		FinancialManage manage = serviceSession.getService(FinancialManage.class);
		QbManage qbmanage = serviceSession.getService(QbManage.class);
		int bid = IntegerParser.parse(request.getParameter("bid"));
		if (bid <= 0) {
			bid = manage.getzrbid();
		}
		QbdzEntity[] qbdzs = securityManage.getZrXlbxx();
		URLParameter parameter = new URLParameter(request, controller.getViewURI(request, XlbZr.class));
		final int currentPage = IntegerParser.parse(request.getParameter("paging.current"));
		PagingResult<XlbEntity> searchXlbzr = manage.searchXlbZr(bid, new Paging() {
			public int getCurrentPage() {
				return currentPage;
			}

			public int getSize() {
				return 10;
			}
		});
		XlbEntity[] search = searchXlbzr.getItems(); //列表
		String aqdz=qbmanage.addQbdz(bid); 
		String bjc=qbmanage.bjc(bid);//获取币简称
%> 
<title><%=_TITLE_ %></title>
<%@include file="/WEB-INF/include/meta.jsp"%>
<%@include file="/WEB-INF/include/style.jsp"%>
<%@include file="/WEB-INF/include/authenticatedSession.jsp"%>
</head>
<%@include file="/WEB-INF/include/header.jsp"%>
<div class="autobox">
 <div class="now">
  <a href="<%=controller.getViewURI(request, com.blockchain.front.servlets.Index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_home")%></a> &gt; <a href="<%=controller.getViewURI(request,com.blockchain.front.servlets.financial.index.class)%>" class="orange"><%=languageDefine.getValue(request, "menu_financeCenter")%> </a> &gt; <%=languageDefine.getValue(request, "turnIn_turnIn")%>
 </div>
 	<div class="assets_center clear po_re zin70">
  <%@include file="/WEB-INF/include/financial/left.jsp"%>	
    <div class="assets_content w900 right bg_w" style="position: relative;">
            <div class="safe_center clear" style="padding-left: 0px;">
                <h1 style="margin-top: 0px; margin-bottom: 15px; line-height: 15px;"><%=languageDefine.getValue(request, "turnIn_turnIn")%></h1>
            </div>
            <div class="sj" style="top: 40px; left: 72px;"></div>
 			<form action="<%=controller.getURI(request, XlbZr.class)%>" method="post" id="form" >
            <div class="weituo_bizhong">
                <div class="bizhong_select">
                    <div class="bz_btn">
                        <img src="<%if(!StringHelper.isEmpty(securityManage.getTbZrzc(bid,1))){%><%=fileStore.getURL(securityManage.getTbZrzc(bid,1))%><%}%>" 
                        alt="" style=" width: 22px;float: left;margin-top: 7px;margin-right: 5px;"/>
                        <span id="coin-default">
                       <select name="bid" id="myzc_type" style="margin-top: 7px;">
                        <%if(qbdzs!=null){for(QbdzEntity q:qbdzs){ if("USDZ".equalsIgnoreCase(q.ywjc)) continue;%>
                          <option value="<%=q.id%>" <%if(q.id==bid){%> selected="selected"<%}%>><%StringHelper.filterHTML(out,q.zwm);%> (<%StringHelper.filterHTML(out,q.ywjc);%> )</option>
                         <%}}%>
                         </select>
                        </span>
                    </div>
                </div>
                <div class="bizhong_type" style="width: 220px;">
                    <span><%=languageDefine.getValue(request, "turnIn_available")%><em class="coin-name"></em>：<font class="coin-balance">
                    <%=Formater.formatAmount_(manage.getB(bid),4)%>
                    </font></span>
                </div>
                  <%if(!StringHelper.isEmpty(bjc)&&("TCC".equals(bjc)||"SWT".equals(bjc))){%>
                <div >
                  <a id="tbzc" style="display:inline-block;line-height:40px; color: #0d66bf;margin-left: 8px;" href="<%=controller.getURI(request, Tbzc.class)%>?bid=<%=bid%>&dz=<%=aqdz%>">同步资产</a>
                </div>
               <%}%> 
            </div>
            <br>
            <div class="cnyin_record">
                    <div class="adr-zhuanru" style="position: relative;z-index:0;">
                        <div class="qb_dizhi ts">
                            <div class="l">
                                <div class="qb_tishi"><%=languageDefine.getValue(request, "turnIn_thisWallet")%>
                                    <b class="coin-name"><%StringHelper.filterHTML(out,manage.getZwm(bid));%></b> <%=languageDefine.getValue(request, "turnIn_thisAddress")%>：
                                    <div class="mart30" style="font-size:20px;"><%StringHelper.filterHTML(out,aqdz);%></div>
                                 </div>
                               
                            </div>
                            <div class="r">
                       <p id="qrcode-t" style="font-size:13px;text-align: center;"><%StringHelper.filterHTML(out,manage.getZwm(bid));%>钱包地址</p>
                            </div>
                            <div style="float: left; margin-left: 15px; margin-bottom: 10px;" id="messageTips">
                                <img  width="100" src="/ewm.htm?_code=<%StringHelper.filterHTML(out, aqdz); %>" alt=""/> 
                            </div>
                        </div>
                    </div>
                    <dl id="other_txxz" class="txxz">
                        <dd><%=languageDefine.getValue(request, "turnIn_turnInDes")%>：</dd>
                        <dd class="sm_1">
                            <span id="txxz_1"><%=languageDefine.getValue(request, "turnIn_automatic")%></span>，
                            <b class="coin-name"><%StringHelper.filterHTML(out,manage.getZwm(bid));%></b> <%=languageDefine.getValue(request, "turnIn_needAll")%>
                            <b class="coin-name"><%StringHelper.filterHTML(out,manage.getZwm(bid));%></b> <%=languageDefine.getValue(request, "turnIn_confrim")%>。
                        </dd>
                        <dd class="sm_2"><%=languageDefine.getValue(request, "turnIn_onlyAddress")%>
                        </dd>
                        <dd class="sm_2">
                         <!-- 3.区块网络会有延时，若长时间未到账，请联系QQ客服：3093283991处理。 -->
                         <dd class="sm_2">
                        <%if("井通SWT".equals(manage.getZwm(bid))){%> 
                         4.首次转入需大于25个<%StringHelper.filterHTML(out,manage.getZwm(bid));%>,否则会导致转入失败。
                         <%}%> 
                        </dd>
                    </dl>
                    <br>
                </div>
                            <div class="cnyin_record">
                <div class="f_body">
                    <table class="f_table" id="investLog_content">
                        <thead>
                        <tr>
                            <th width=""><%=languageDefine.getValue(request, "turnIn_turnInTime")%></th>
                            <th width=""><%=languageDefine.getValue(request, "turnIn_turnInCurrency")%></th>
                            <th width=""><%=languageDefine.getValue(request, "turnIn_turnOutAddress")%></th>
                            <th width=""><%=languageDefine.getValue(request, "turnIn_turnInQuantity")%></th>
                            <th width=""><%=languageDefine.getValue(request, "turnIn_arrivalQuantity")%></th>
                            <th width=""><%=languageDefine.getValue(request, "turnIn_status")%></th>
                        </tr>
                        </thead>
                        <tbody>
             <%if(search!=null){for(XlbEntity s:search){%> 
            	<tr>
                <td><%=TimestampParser.format(s.sj)%></td>
                <td><%StringHelper.filterHTML(out,s.zwm);%>(<%StringHelper.filterHTML(out,s.ywm);%>)</td>
                <td><%StringHelper.filterHTML(out,s.zr_zcdz);%></td>
                <td><%=Formater.formatAmount_6(s.zrsl)%></td>
                <td><%=Formater.formatAmount_6(s.sjdz)%></td>
                <td><%=backgroundDataFlag==1?s.isPass.getName():backgroundDataFlag==2?s.isPass.getNameEn():s.isPass.getNameTw()%></td>
            </tr>
            <%}}%>
              </tbody>
                    </table>
                   <%AbstractFinancialServlet.rendPaging(out, searchXlbzr,controller.getPagingURI(request,XlbZr.class),parameter.getQueryString());%>
                </div>
            </div>
            </form>
        </div>
 </div>
</div>
<div id="all_mask" class="all_mask"  style="height: 100%;width: 100%;position: fixed;top: 0px;left: 0px;background-color: #000;background: rgba(0, 0, 0, 0.8);z-index: 100;filter: alpha(opacity=80);-moz-opacity: .80;opacity: 0.8;_position: absolute;_height: 2000px;display: none;">
<div style="width:200px;position: fixed;left:50%;top: 50%;z-index: 1001;margin-top:-31px;margin-left:-100px;display: block;" id="yl">
         <div style="width:102px;height:82px;border-radius:10px;text-align:center;padding-top: 20px;margin:0 auto;background:#fff;">
            <img src="<%=controller.getStaticPath(request)%>/images/load.gif" height="62" width="62" alt="">
         </div>
         <p style="text-align:center;color:#fff;  line-height: 30px;">正在同步中，请耐心等待，不要关闭页面...</p>
</div>
</div>
<%@include file="/WEB-INF/include/footer.jsp"%>
<%@include file="/WEB-INF/include/script.jsp"%>
<script type="text/javascript">
	$("#myzc_type").change(function () {
<%if(StringHelper.isEmpty(aqdz)){%>	
	 $("#all_mask").show();
<%}%>	 
	$("#form").attr("action",'<%=controller.getViewURI(request, XlbZr.class)%>');	
    $("#form").submit();
});
	 $("#tbzc").click(function(){
		 $("#all_mask").show();
	 })	
</script>
</body>
</html>	
	
